﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Qiang.Styles
{
    public interface IPolygonStyle : IStyle
    {


        #region 属性

        /// <summary>
        /// 是否使用外轮廓线。
        /// </summary>
        bool UseOutLine { get; set; }

        /// <summary>
        /// 外轮廓线。
        /// </summary>
        ILineStyle OutLineStyle { get; set; }

        /// <summary>
        /// 样式类型。
        /// </summary>
        PolygonStyleType StyleType { get; }



        #endregion


        #region 方法


        /// <summary>
        /// 添充。
        /// </summary>
        /// <param name="g"></param>
        /// <param name="path"></param>
        void FillPath(Graphics g, GraphicsPath path);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="g"></param>
        /// <param name="region"></param>
        void FillRegion(Graphics g, Region region);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        Brush ToBrush();


        #endregion


    }
}
